Documentation > CMS Template API Library > Util > MakeList(Int32[])

MakeList

Convenience method for making a list of strings. You may pass an array of ints or a variable length list of ints like List list = Util.MakeList(4,8,15,16,23,42);

public List<Int32> MakeList(Int32[])


Returns

List of ints

Parameters

NameDescriptionType
items The items to turn into a list of ints. System.Int32[]

Code Example

C#

Sample:

            
             List<int> list = Util.MakeList(4,8,15,16,23,42);
            
            

Connect with Crownpeak